<%@ page language="java"  pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<script type="text/javascript">
		function jump(p){
			
			document.myForm.elements["pb.currentPage"].value = p;
		//	alert(document.myForm.elements["pb.pageSize"].value);
			document.myForm.submit();
		}
		function jumpSize(s){
		//document.myForm.elements["pb.pageSize"].value = s;
		
			document.myForm.submit();
		}
	</script>

   	<input type="hidden" name="pb.currentPage" />
   
    <table width="100%" border="0">
    	<tr>
    		<td align="right">
    		
    		第${pb.currentPage}/${pb.totalPage }页&nbsp;&nbsp;
    		共${pb.totalCount }条&nbsp;&nbsp;
    		每页<input name="pb.pageSize" type="text" style="width:20px" value="${pb.pageSize }" onblur="jumpSize(this.value)" />条&nbsp;&nbsp;	
    			<input type="button" value="第一页" ${pb.isFirstEnabled } onclick="jump('1')" />&nbsp;&nbsp;
    			<c:if test="${pb.currentPage ne 1}">
    			<input type="button" value="上一页" ${pb.isFirstEnabled } onclick="jump('${pb.currentPage-1 }')"  />&nbsp;&nbsp;
    			</c:if>
    			<c:if test="${pb.currentPage ne pb.totalPage}">
    			<input type="button" value="下一页" ${pb.isLastEnabled } onclick="jump('${pb.currentPage+1 }')" />&nbsp;&nbsp;
    			</c:if>
    			<input type="button" value="最后一页" ${pb.isLastEnabled } onclick="jump('${pb.totalPage }')" />&nbsp;&nbsp;
    			
    			跳到<input type="text" name="cp" style="width:20px" value="${pb.currentPage }"/>页
    			<input type="button" value="GO" onclick="jump(document.myForm.cp.value)"/>
    		</td>
    	</tr>
    </table>

